package cn.itcast.gulimall.order.service;

import cn.itcast.gulimall.order.vo.OrderConfirmVo;
import cn.itcast.gulimall.order.vo.OrderSubmitVo;
import cn.itcast.gulimall.order.vo.SubmitOrderResponseVo;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.itcast.common.utils.PageUtils;
import cn.itcast.gulimall.order.entity.OrderEntity;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author duanzihuang
 * @email duanzihuang@itcast.cn.com
 * @date 2020-04-14 21:55:53
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    public OrderConfirmVo confirmOrder() throws ExecutionException, InterruptedException;

    SubmitOrderResponseVo submitOrder(OrderSubmitVo vo);

    OrderEntity getOrderByOrderSn(String orderSn);

    void closeOrder(OrderEntity orderEntity);
}

